<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>报表管理</title>
    <%@ include file="/static/common/common.jsp" %>
    <script type="text/javascript" src="../../static/plugins/artDialog/jquery.artDialog.js?skin=blue"></script>
    <script type="text/javascript" src="../../static/plugins/artDialog/plugins/iframeTools.js"></script>
    <script type="text/javascript" src="../../static/js/listSale.js"></script>
    <script type="text/javascript"  >
        $(function () {
            $(".chart").click(function () {
                //使用表单序列化方法,可以在表单提交的时候将参数全部序列化为字符串内容
                $.artDialog.open($(this).data("url")+"?"+$("#searchForm").serialize(), {
                    title: '销售报表',
                    width: 950,
                    height: 450,
                    left: '50%',
                    top: '50%',
                    opacity: 0.1,
                    lock: true,
                    resize: false
                });
            });
        });
    </script>
</head>
<body>
<table id="salechart_datagrid"></table>
<div id="salechart_toolbar">
    <form id="searchForm">
        机构:<input id="organization" class="easyui-combobox"
                  data-options="url:'/organization/getAll.do',valueField:'id',textField:'name',panelHeight:'auto'"
                  name="organId">
        险种:<input id="product" class="easyui-combobox"
                  data-options="url:'/product/getAll.do',valueField:'id',textField:'name',panelHeight:'auto'"
                  name="productId">
        保单时间:<input id="minDate" type="text" class="easyui-datebox" name="minDate"/>
        ~ <input id="maxDate" type="text" class="easyui-datebox" name="maxDate"/>
        <br>

        <table>
            <tr>
                <td><span style="font-size: 12px">分组:</span>
                    <select id="groupType" class="easyui-combobox" name="groupType" data-options="panelHeight:'auto',width:150" >
                       <%-- <option value="e.username">销售人员</option>--%>
                        <option value="oz.name">保险机构</option>
                        <option value="p.name">保险产品</option>
                        <option value="date_format(ii.applicationDate,'%Y-%m')">保单日期(月)</option>
                        <option value="date_format(ii.applicationDate,'%Y-%m-%d')">保单日期(日)</option>
                    </select>
                </td>
                <td width="50px"></td>
                <td><a class="easyui-linkbutton chart" iconCls="icon-large-chart" plain="true"
                       data-url="/chart/saleByBar.do?">柱状图</a>
                <td width="70px"></td>
                <td><a class="easyui-linkbutton chart" iconCls="icon-filter" plain="true"
                       data-url="/chart/saleByPie.do?">饼状图</a>
                </td>
                <td width="60px"></td>
                <td><a class="easyui-linkbutton" iconCls="icon-search" plain="true" onclick="doSearch()">查询</a> </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
